﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<%set (string){category_title}=get_category_title({model.category_id},"图片分享")%>
<title>{model.title} - {category_title} - {config.webname}</title>
<meta content="{model.seo_keywords}" name="keywords">
<meta content="{model.seo_description}" name="description">
<link rel="stylesheet" href="{config.webpath}scripts/ui/skins/Aqua/css/ligerui-all.css" />
<link media="screen" type="text/css" href="{config.templateskin}/css/style.css" rel="stylesheet">
<script type="text/javascript" src="{config.webpath}scripts/jquery/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="{config.webpath}scripts/ui/js/ligerBuild.min.js"></script>
<script type="text/javascript" src="{config.templateskin}/js/base.js"></script>
<script type="text/javascript" src="{config.templateskin}/js/slide.js"></script>
<script type="text/javascript" src="{config.templateskin}/js/digg_ajax.js"></script>
<script type="text/javascript">
	$(function(){
		bindDigg('{config.webpath}', '{model.id}');
	});
</script>
</head>

<body>
<!--Header-->
<%template src=/_header.html/%>
<!--/Header-->

<div class="boxwrap">
  <div class="left710">
   <!--Content-->
    <div class="main_box">
      <div class="meta">
        <h1 class="meta-tit">{model.title}</h1>
        <p class="meta-info">
          <span class="time">{model.add_time}</span>
          <span class="comm"><%write get_comment_count({model.id}, "is_lock=0")%>人评论</span>
          <span class="view">{model.click}次浏览</span>
          分类：{category_title}
          <!--扩展属性开始-->
          <%if model.attribute_values!=null%>
          <%loop (AjeeleeCms.Model.attribute_value) modelt model.attribute_values%>
          {modelt.title}：{modelt.content}&nbsp;&nbsp; 
          <%/loop%>
          <%/if%>
          <!--扩展属性结束-->
        </p>
      </div>
      
      <div class="line20"></div>
      <!--幻灯片开始-->
      <div class="slide_box">
        <div id="pic_box" class="pic_box">
          <a class="big_prev"></a><a class="big_next"></a>
          <div id="pic_show"></div>
        </div>
        <div class="scroll_box">
          <a class="small_prev"></a><a class="small_next"></a>
          <div id="pic_scroll" class="items">
            <ul>
              <%if model.albums!=null%>
              <%loop (AjeeleeCms.Model.article_albums) modelt1 model.albums%>
              <li><a href="javascript:;"><img bimg="{modelt1.big_img}" src="{modelt1.small_img}" /></a></li>
              <%/loop%>
              <%/if%>
            </ul>
           </div>
        </div>
        <div class="clear"></div>
      </div>
      <div class="line10"></div>
      <!--幻灯片结束-->
      
      <!--图文介绍-->
      <div class="entry">
        <p>{model.content}</p>
      </div>
      <!--/图文介绍-->
      
      <div class="clear"></div>
      <!--分享-->
      <%template src=/_share_js.html/%>
      <!--/分享-->
      
      <div class="clear"></div>
      <!--顶踩-->
      <%template src=/_digg_box.html/%>
      <!--/项踩-->
      
      <!--同类推荐-->
      <div class="related">
        <h3 class="base_tit">同类推荐</h3>
        <ul class="img_list">
          <%set (DataTable){redphoto1}=get_news_list(channel_id, model.category_id, 16, "is_red=1 and id<>"+model.id+" and img_url<>''")%>
          <%loop reddr1 redphoto1%>
          <li><a title="{reddr1[title]}" href="<%linkurl("photo_show",{reddr1[id]})%>"><img alt="{reddr1[title]}" src="{reddr1[img_url]}"><span>{reddr1[title]}</span></a></li>
          <%/loop%>
          <%if redphoto1.Rows.Count<1%>
          <div>同类下暂无推荐的图片...</div>
          <%/if%>
        </ul>
      </div>
      <!--/同类推荐-->
      
      <div class="line20"></div>
      <!--评论-->
      <%if model.is_msg==1%>
      <%template src=/_comment_box.html/%>
      <%/if%>
      <!--/评论-->

    </div>
    <!--/Content-->
  </div>
  
  <div class="left264">
    <!--Sidebar-->
    <div class="sidebar">
      <h3>资源类别</h3>
      <ul>
        <%set (DataTable){category_list}=get_category_list(channel_id, 0)%>
        <%loop cdr category_list%>
        <li><a title="{cdr[title]}" href="<%linkurl("photo_list",{cdr[id]})%>">{cdr[title]}</a></li>
        <%/loop%>
      </ul>
      <h3>推荐图片</h3>
      <div class="focus_list">
        <ul>
          <%set (DataTable){redphoto}=get_news_list(channel_id, 0, 6, "is_red=1 and img_url<>''")%>
          <%loop reddr redphoto%>
          <li>
            <a title="{reddr[title]}" href="<%linkurl("photo_show",{reddr[id]})%>">
              <img src="{reddr[img_url]}" width="100" height="100" alt="{reddr[title]}" />
              <span>{reddr[title]}</span>
            </a>
          </li>
          <%/loop%>
        </ul>
        <div class="clear"></div>
      </div>
      <h3>人气排行</h3>
      <ul class="rank_list">
        <%set (DataTable){hotphoto}=get_news_list(channel_id, 0, 10, "", "click desc,id desc")%>
         <%loop hotdr hotphoto%>
         <%if hotdr__loop__id==1%>
         <li class="active">
         <%else%>
         <li>
         <%/if%>
          <span><%datetostr({hotdr[add_time]},MM-dd)%></span>
          <i class="num"><%write hotdr__loop__id%></i><a href="<%linkurl("photo_show",{hotdr[id]})%>">{hotdr[title]}</a>
        </li>
        <%/loop%>
      </ul>
    </div>
    <!--/Sidebar-->
  </div>
</div>

<div class="clear"></div>

<!--Footer-->
<%template src=/_footer.html/%>
<!--/Footer-->
</body>
</html>
